package com.masterrabbit.sn.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.masterrabbit.sn.domain.Activities;

/**
* @author 13119
* @description 针对表【activities】的数据库操作Service
* @createDate 2025-03-18 10:00:39
*/
public interface ActivitiesService extends IService<Activities> {
    /**
     * 添加活动
     */
    int addActivities(Activities activities);
    /**
     * 根据上架情况查询活动
     */
    Page<Activities> getOfflineActivities(Integer merchantId, int pageNum, int pageSize);
    /**
     * 根据上架情况查询活动
     */
    Page<Activities> getOnlineActivities(Integer merchantId, int pageNum, int pageSize);
    /**
     * 查看活动详情
     */
    Activities getActivitiesDetails(Integer activitiesId);
    /**
     * 删除活动
     */
    int deleteActivities(int activitiesId);
    /**
     * 上架活动
     */
    int updateActivitiesOnline(int activitiesId);
    /**
     * 下架活动
     */
    int updateActivitiesOffline(int activitiesId);

}
